<#noparse><?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
  <springProperty scope="context" name="elkServer" source="elk.server"/>
  <springProperty scope="context" name="springAppName" source="spring.application.name"/>
  <springProperty scope="context" name="springProfileActive" source="spring.profiles.active"/>
  <springProperty scope="context" name="efkHost" source="efk.host"/>
  <springProperty scope="context" name="efkPort" source="efk.port"/>
  <!-- 控制台输出 -->
  <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
    <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
      <!--格式化输出：%d表示日期，%thread表示线程名，%-5level：级别从左显示5个字符宽度%msg：日志消息，%n是换行符-->
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
    </encoder>
  </appender>

  <root level="INFO">
    <appender-ref ref="console"/>
    <!-- <appender-ref ref="elk"></appender-ref>-->
<!--    <appender-ref ref="efk"></appender-ref>-->
  </root>
</configuration></#noparse>